<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ewwww</title>
    <style>
        *{
            margin: 0;padding: 0;
            word-break: break-all;
            text-align: justify;
        }
        html{
            font-size: 100px;
        }
    </style>
</head>
<body>
    <div id="root"></div>
    <script>
        function scale(){
            console.log(window.innerWidth/1920)
            const fz=parseInt(window.innerWidth/1920*100)
            document.documentElement.style.fontSize=`${fz}px`
        }
        scale()
        window.addEventListener('resize',scale)
       
    </script>
</body>
</html>